<?php
session_start();
include_once 'boot.php';
//include_once 'employees_fields.php';
include_once 'employees_spec.php';
?>
<pre>
<?php

$fr = new CF_FilterReciever;

$filters = CF_FilterReciever::get_filters($employees_spec);
print "Filters\n";
print_r($filters);

$params = CF_FilterQueryPdo::filter_parameters($filters);
print "Params\n";
print_r($params);

// stuff to get lists

$fs = new CF_FieldSpec($employees_spec);

$lr = new CF_LookupResolver;

$fs->SetupLookupResolver($lr);

$list = $lr->GetList('officeCode');

$lookups['officeCode'] = $list;

//--

print "Now, FilterForm \n";

$ff = new CF_FilterForm($employees_spec,$filters);
$ff->fix_fs_filters();
$ff->set_lookup_lists($lookups);
$fbox = $ff->make_filters_box();

?>
</pre>
<?php print $fbox ?>
